<input type="hidden" id="agentIncomeCount" shiro:hasPermission="agentIncomeCount:export" value="1" />

<div class="row-content am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
			<div class="widget am-cf">
				<div class="widget-head am-cf">
					<div class="widget-title  am-cf" id="title">合伙人收益结算</div>
				</div> 
				<input type="hidden" id="type" name="type" th:value="${type}" /> 
				<form class="am-form am-form-horizontal">
					  <div class="am-form-group">
					  		<label for="loanerStatus" class="am-u-sm-12 am-u-lg-1 am-form-label">收益结算时间:</label>
							<div class="am-u-sm-2">
								<input type="text" id="countDate" readonly="readonly" class="form-datetime-lang am-form-field" />
							</div>
							<label for="loanerStatus" class="am-u-sm-12 am-u-lg-1 am-form-label">付款时间:</label>
							<div class="am-u-sm-1">
								<input type="text" placeholder="起始时间" id="startTime" readonly="readonly" class="form-datetime-lang am-form-field" />
							</div>
							<div class="am-u-sm-1">
								<input type="text" placeholder="终止时间" id="endTime" readonly="readonly" class="form-datetime-lang am-form-field" />
							</div>
							<label for="grade" class="am-u-lg-1 am-form-label">等级</label>
							<div class="am-u-sm-2">
								<select id="grade"  data-am-selected="{btnWidth: '40%', btnSize: 'sm'}" name="grade"  >
									<option th:each="grade : ${grades}" 	     th:value="${grade.key}"    th:text="${grade.value}"></option>
								</select> 
							</div>	
							<label for="status" class="am-u-lg-1 am-form-label">状态</label>
							<div class="am-u-sm-2">
								<select id="status"  data-am-selected="{btnWidth: '40%', btnSize: 'sm'}" name="status"  >
									<option th:each="status : ${statusls}" 	     th:value="${status.key}"    th:text="${status.value}"></option>
								</select> 
							</div>	
						</div>
						<div class="am-form-group">
							<label for="agentCond" class="am-u-lg-2 am-form-label">合伙人手机号/姓名:</label>
							<div class="am-u-lg-2">
						 		<input type="text" class="am-form-field " placeholder="" id="agentCond" th:value="${agentCond}" /> 
							</div>
							<label for="area" class="am-u-lg-2 am-form-label">合伙人管辖区域：</label>
							<div class="am-u-lg-2">
						 		<input type="text" class="am-form-field " placeholder="" id="areaKey" th:value="${areaKey}" /> 
							</div>
							<button type="button" class="am-btn am-btn-secondary"  onclick="search()">查询</button>
							<!-- <button type="button" class="am-btn am-btn-secondary" shiro:hasPermission="payIncome:payAgentIncome" onclick="payAgentIncome()">付款</button> -->
						</div>
				</form>
				
				<div class="widget-body  am-fr">
					
					<!-- 表格 -->
					<div class="am-u-sm-12">
							<div class="widget-main padding-6 no-padding-left no-padding-right">
								<div id="dtGridContainer" class="dlshouwen-grid-container"></div>
								<div id="dtGridToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
							</div>
					</div>
 				
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" th:src="@{/customer/agent/income/agentIncomeCountList.js}"/>


